import javax.swing.*;

public class MainFrame extends JFrame {
    public MainFrame() {
        setTitle("学生成绩管理系统");
        setSize(800, 600);
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        setLocationRelativeTo(null);

        JTabbedPane tabbedPane = new JTabbedPane();

        // 添加各个功能面板
        tabbedPane.addTab("学生管理", new StudentPanel());
        tabbedPane.addTab("课程管理", new CoursePanel());
        tabbedPane.addTab("成绩管理", new GradePanel());
        tabbedPane.addTab("统计分析", new AnalysisPanel());

        add(tabbedPane);
    }
}